<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: H:/project/LibTools/src/stream/StringTools.h 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_090521d29e73b40f7fc0a63254d8965e.html">stream</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#define-members">宏定义</a> &#124;
<a href="#typedef-members">类型定义</a>  </div>
  <div class="headertitle">
<div class="title">StringTools.h 文件参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="_algorithm_8h_source.html">../algorithm/Algorithm.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_share_api_8h_source.html">../tools/ShareApi.h</a>&quot;</code><br />
<code>#include &lt;string&gt;</code><br />
<code>#include &lt;vector&gt;</code><br />
</div>
<p><a href="_string_tools_8h_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_string_tools.html">StringTools&lt; T &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">字符串工具  <a href="class_string_tools.html#details">更多...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:a3f424acff193363c7e54626a35b90e69"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8h.html#a3f424acff193363c7e54626a35b90e69">TO_STRING</a>(str)&#160;&#160;&#160;std::string(str)</td></tr>
<tr class="separator:a3f424acff193363c7e54626a35b90e69"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a60694576e1be5888918efa92f551d2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8h.html#a0a60694576e1be5888918efa92f551d2">TO_TSTRING</a>(str)&#160;&#160;&#160;std::string(str)</td></tr>
<tr class="separator:a0a60694576e1be5888918efa92f551d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
类型定义</h2></td></tr>
<tr class="memitem:a816fa58fd77499b0edb2c69ebe803d5c"><td class="memItemLeft" align="right" valign="top">typedef std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8h.html#a816fa58fd77499b0edb2c69ebe803d5c">tstring</a></td></tr>
<tr class="separator:a816fa58fd77499b0edb2c69ebe803d5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">编码转换函数</div></td></tr>
<tr class="memitem:a0076d2dc1fe933838b08eb97ee3f7480"><td class="memItemLeft" align="right" valign="top">std::string <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8h.html#a0076d2dc1fe933838b08eb97ee3f7480">unicode_to_gbk</a> (const std::wstring &amp;str)</td></tr>
<tr class="memdesc:a0076d2dc1fe933838b08eb97ee3f7480"><td class="mdescLeft">&#160;</td><td class="mdescRight">unicode转换成gbk编码  <a href="_string_tools_8h.html#a0076d2dc1fe933838b08eb97ee3f7480">更多...</a><br /></td></tr>
<tr class="separator:a0076d2dc1fe933838b08eb97ee3f7480"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26f7e486807c02cba23384b3bb45347d"><td class="memItemLeft" align="right" valign="top">std::wstring <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8h.html#a26f7e486807c02cba23384b3bb45347d">gbk_to_unicode</a> (const std::string &amp;str)</td></tr>
<tr class="memdesc:a26f7e486807c02cba23384b3bb45347d"><td class="mdescLeft">&#160;</td><td class="mdescRight">gbk转换成unicode编码  <a href="_string_tools_8h.html#a26f7e486807c02cba23384b3bb45347d">更多...</a><br /></td></tr>
<tr class="separator:a26f7e486807c02cba23384b3bb45347d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f3141bdc42601d4e4206ef2e881ecc1"><td class="memItemLeft" align="right" valign="top">std::wstring <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8h.html#a0f3141bdc42601d4e4206ef2e881ecc1">utf8_to_unicode</a> (const std::string &amp;str)</td></tr>
<tr class="memdesc:a0f3141bdc42601d4e4206ef2e881ecc1"><td class="mdescLeft">&#160;</td><td class="mdescRight">utf8转换成unicode编码  <a href="_string_tools_8h.html#a0f3141bdc42601d4e4206ef2e881ecc1">更多...</a><br /></td></tr>
<tr class="separator:a0f3141bdc42601d4e4206ef2e881ecc1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0091b1aaa88ff7c0dd77180f9647738"><td class="memItemLeft" align="right" valign="top">std::string <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8h.html#ae0091b1aaa88ff7c0dd77180f9647738">unicode_to_utf8</a> (const std::wstring &amp;str)</td></tr>
<tr class="memdesc:ae0091b1aaa88ff7c0dd77180f9647738"><td class="mdescLeft">&#160;</td><td class="mdescRight">unicode转换成utf8编码  <a href="_string_tools_8h.html#ae0091b1aaa88ff7c0dd77180f9647738">更多...</a><br /></td></tr>
<tr class="separator:ae0091b1aaa88ff7c0dd77180f9647738"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5d4f522737fbd0c44d71ce1c9b1d852"><td class="memItemLeft" align="right" valign="top">std::string <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8h.html#ad5d4f522737fbd0c44d71ce1c9b1d852">utf8_to_gbk</a> (const std::string &amp;str)</td></tr>
<tr class="memdesc:ad5d4f522737fbd0c44d71ce1c9b1d852"><td class="mdescLeft">&#160;</td><td class="mdescRight">utf8 转换成gbk编码  <a href="_string_tools_8h.html#ad5d4f522737fbd0c44d71ce1c9b1d852">更多...</a><br /></td></tr>
<tr class="separator:ad5d4f522737fbd0c44d71ce1c9b1d852"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c50f2d56eeaf3eeb89185e74f8b4280"><td class="memItemLeft" align="right" valign="top">std::string <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8h.html#a8c50f2d56eeaf3eeb89185e74f8b4280">gbk_to_utf8</a> (const std::string &amp;str)</td></tr>
<tr class="memdesc:a8c50f2d56eeaf3eeb89185e74f8b4280"><td class="mdescLeft">&#160;</td><td class="mdescRight">gbk转换成utf8编码  <a href="_string_tools_8h.html#a8c50f2d56eeaf3eeb89185e74f8b4280">更多...</a><br /></td></tr>
<tr class="separator:a8c50f2d56eeaf3eeb89185e74f8b4280"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">格式化字符串,参见标准函数:</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">bufSize</td><td>设置返回字符串缓存最大值 </td></tr>
    <tr><td class="paramname">mat</td><td>格式化字符串 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回字符串类 </dd></dl>
<dl class="section see"><dt>参见</dt><dd>snprintf </dd></dl>
</div></td></tr>
<tr class="memitem:a872d0eeca992bcd047adc1f3db715d23"><td class="memItemLeft" align="right" valign="top">std::string <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8h.html#a872d0eeca992bcd047adc1f3db715d23">format</a> (const char *mat,...)</td></tr>
<tr class="separator:a872d0eeca992bcd047adc1f3db715d23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05392ebea4c84f0e446a39ce37741630"><td class="memItemLeft" align="right" valign="top">std::wstring <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8h.html#a05392ebea4c84f0e446a39ce37741630">format</a> (const <a class="el" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a> *mat,...)</td></tr>
<tr class="separator:a05392ebea4c84f0e446a39ce37741630"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:accff640a08f04f7443e0da4eb25a4cf0"><td class="memItemLeft" align="right" valign="top">std::string <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8h.html#accff640a08f04f7443e0da4eb25a4cf0">format_s</a> (size_t bufSize, const char *mat,...)</td></tr>
<tr class="separator:accff640a08f04f7443e0da4eb25a4cf0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed4d212ddfba3a5d2ce4406210f8f2e8"><td class="memItemLeft" align="right" valign="top">std::wstring <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8h.html#aed4d212ddfba3a5d2ce4406210f8f2e8">format_s</a> (size_t bufSize, const <a class="el" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a> *mat,...)</td></tr>
<tr class="separator:aed4d212ddfba3a5d2ce4406210f8f2e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">分割字符串</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">str</td><td>待分割的源字符串 </td></tr>
    <tr><td class="paramname">spchr</td><td>分隔符 </td></tr>
    <tr><td class="paramname">strs</td><td>返回的字符串组 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回分割字符串的数量 </dd></dl>
</div></td></tr>
<tr class="memitem:a314c20209ce46478ac5825aba37c5c51"><td class="memItemLeft" align="right" valign="top">size_t <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8h.html#a314c20209ce46478ac5825aba37c5c51">split</a> (const std::string &amp;str, <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> spchr, std::vector&lt; std::string &gt; &amp;strs)</td></tr>
<tr class="separator:a314c20209ce46478ac5825aba37c5c51"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab769a3d06cb8372758bc5477b0151240"><td class="memItemLeft" align="right" valign="top">size_t <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8h.html#ab769a3d06cb8372758bc5477b0151240">split</a> (const std::wstring &amp;str, <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> spchr, std::vector&lt; std::wstring &gt; &amp;strs)</td></tr>
<tr class="separator:ab769a3d06cb8372758bc5477b0151240"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">字符串转数值类型</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="section remark"><dt>备注</dt><dd>c++11已有此功能,主要用于框架内部 </dd></dl>
</div></td></tr>
<tr class="memitem:a3ec3563c6636f121dba654969544f8ed"><td class="memItemLeft" align="right" valign="top">long long <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8h.html#a3ec3563c6636f121dba654969544f8ed">stoll</a> (const std::string &amp;str)</td></tr>
<tr class="separator:a3ec3563c6636f121dba654969544f8ed"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d25b20b0b0c9bec2a7065b5af7eb2db"><td class="memItemLeft" align="right" valign="top">unsigned long long <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_string_tools_8h.html#a4d25b20b0b0c9bec2a7065b5af7eb2db">stollu</a> (const std::string &amp;str)</td></tr>
<tr class="separator:a4d25b20b0b0c9bec2a7065b5af7eb2db"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">宏定义说明</h2>
<a id="a3f424acff193363c7e54626a35b90e69"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f424acff193363c7e54626a35b90e69">&#9670;&nbsp;</a></span>TO_STRING</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TO_STRING</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">str</td><td>)</td>
          <td>&#160;&#160;&#160;std::string(str)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_string_tools_8h_source.html">StringTools.h</a> 第 <a class="el" href="_string_tools_8h_source.html#l00077">77</a> 行定义.</p>

</div>
</div>
<a id="a0a60694576e1be5888918efa92f551d2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a60694576e1be5888918efa92f551d2">&#9670;&nbsp;</a></span>TO_TSTRING</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TO_TSTRING</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">str</td><td>)</td>
          <td>&#160;&#160;&#160;std::string(str)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_string_tools_8h_source.html">StringTools.h</a> 第 <a class="el" href="_string_tools_8h_source.html#l00079">79</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">类型定义说明</h2>
<a id="a816fa58fd77499b0edb2c69ebe803d5c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a816fa58fd77499b0edb2c69ebe803d5c">&#9670;&nbsp;</a></span>tstring</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef std::string <a class="el" href="_string_tools_8h.html#a816fa58fd77499b0edb2c69ebe803d5c">tstring</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_string_tools_8h_source.html">StringTools.h</a> 第 <a class="el" href="_string_tools_8h_source.html#l00078">78</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">函数说明</h2>
<a id="a872d0eeca992bcd047adc1f3db715d23"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a872d0eeca992bcd047adc1f3db715d23">&#9670;&nbsp;</a></span>format() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> format </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>mat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00127">127</a> 行定义.</p>

</div>
</div>
<a id="a05392ebea4c84f0e446a39ce37741630"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a05392ebea4c84f0e446a39ce37741630">&#9670;&nbsp;</a></span>format() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::wstring <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> format </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a> *&#160;</td>
          <td class="paramname"><em>mat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00137">137</a> 行定义.</p>

</div>
</div>
<a id="accff640a08f04f7443e0da4eb25a4cf0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#accff640a08f04f7443e0da4eb25a4cf0">&#9670;&nbsp;</a></span>format_s() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> format_s </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>bufSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>mat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00147">147</a> 行定义.</p>

</div>
</div>
<a id="aed4d212ddfba3a5d2ce4406210f8f2e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aed4d212ddfba3a5d2ce4406210f8f2e8">&#9670;&nbsp;</a></span>format_s() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::wstring <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> format_s </td>
          <td>(</td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>bufSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="tools_8h.html#aad61bc3eae1804d8784adebdce0721d3">WCHAR</a> *&#160;</td>
          <td class="paramname"><em>mat</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00157">157</a> 行定义.</p>

</div>
</div>
<a id="a26f7e486807c02cba23384b3bb45347d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a26f7e486807c02cba23384b3bb45347d">&#9670;&nbsp;</a></span>gbk_to_unicode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::wstring <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> gbk_to_unicode </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>gbk转换成unicode编码 </p>

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00027">27</a> 行定义.</p>

</div>
</div>
<a id="a8c50f2d56eeaf3eeb89185e74f8b4280"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8c50f2d56eeaf3eeb89185e74f8b4280">&#9670;&nbsp;</a></span>gbk_to_utf8()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> gbk_to_utf8 </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>gbk转换成utf8编码 </p>

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00068">68</a> 行定义.</p>

</div>
</div>
<a id="a314c20209ce46478ac5825aba37c5c51"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a314c20209ce46478ac5825aba37c5c51">&#9670;&nbsp;</a></span>split() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> split </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td>
          <td class="paramname"><em>spchr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::string &gt; &amp;&#160;</td>
          <td class="paramname"><em>strs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00200">200</a> 行定义.</p>

</div>
</div>
<a id="ab769a3d06cb8372758bc5477b0151240"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab769a3d06cb8372758bc5477b0151240">&#9670;&nbsp;</a></span>split() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> split </td>
          <td>(</td>
          <td class="paramtype">const std::wstring &amp;&#160;</td>
          <td class="paramname"><em>str</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td>
          <td class="paramname"><em>spchr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; std::wstring &gt; &amp;&#160;</td>
          <td class="paramname"><em>strs</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00206">206</a> 行定义.</p>

</div>
</div>
<a id="a3ec3563c6636f121dba654969544f8ed"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3ec3563c6636f121dba654969544f8ed">&#9670;&nbsp;</a></span>stoll()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">long long <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> stoll </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00236">236</a> 行定义.</p>

</div>
</div>
<a id="a4d25b20b0b0c9bec2a7065b5af7eb2db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4d25b20b0b0c9bec2a7065b5af7eb2db">&#9670;&nbsp;</a></span>stollu()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned long long <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> stollu </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00241">241</a> 行定义.</p>

</div>
</div>
<a id="a0076d2dc1fe933838b08eb97ee3f7480"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0076d2dc1fe933838b08eb97ee3f7480">&#9670;&nbsp;</a></span>unicode_to_gbk()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> unicode_to_gbk </td>
          <td>(</td>
          <td class="paramtype">const std::wstring &amp;&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>unicode转换成gbk编码 </p>

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00016">16</a> 行定义.</p>

</div>
</div>
<a id="ae0091b1aaa88ff7c0dd77180f9647738"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae0091b1aaa88ff7c0dd77180f9647738">&#9670;&nbsp;</a></span>unicode_to_utf8()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> unicode_to_utf8 </td>
          <td>(</td>
          <td class="paramtype">const std::wstring &amp;&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>unicode转换成utf8编码 </p>

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00048">48</a> 行定义.</p>

</div>
</div>
<a id="ad5d4f522737fbd0c44d71ce1c9b1d852"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad5d4f522737fbd0c44d71ce1c9b1d852">&#9670;&nbsp;</a></span>utf8_to_gbk()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> utf8_to_gbk </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>utf8 转换成gbk编码 </p>

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00058">58</a> 行定义.</p>

</div>
</div>
<a id="a0f3141bdc42601d4e4206ef2e881ecc1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0f3141bdc42601d4e4206ef2e881ecc1">&#9670;&nbsp;</a></span>utf8_to_unicode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::wstring <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> utf8_to_unicode </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>utf8转换成unicode编码 </p>

<p class="definition">在文件 <a class="el" href="_string_tools_8cpp_source.html">StringTools.cpp</a> 第 <a class="el" href="_string_tools_8cpp_source.html#l00038">38</a> 行定义.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
